package com.firesrc.dao.impl;

import java.util.List;

import jodd.db.DbThreadSession;
import jodd.db.oom.sqlgen.DbEntitySql;

import com.firesrc.bean.SendRecord;
import com.firesrc.dao.SendRecordDao;
import com.firesrc.dao.SuperDao;
import com.firesrc.util.SystemUtil;

public class SendRecordDaoImpl extends SuperDao<SendRecord> implements SendRecordDao {

	@Override
	public int getCountByMail(String string) {
		return 0;
	}

	@Override
	public List<SendRecord> getTodaySendList() {
		DbThreadSession dbThreadSession = new DbThreadSession(cp);
		List<SendRecord> list = DbEntitySql
				.findByColumn(SendRecord.class, "sendDate", SystemUtil.getCurrentDateStringYYYYMMDD()).query().list();
		dbThreadSession.closeSession();
		return list;
	}

}
